package com.orphan.marketBack.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketBack.po.OrderGoodsTest;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("OrderGoodsTestMapper")
public interface OrderGoodsTestMapper extends BaseMapper<OrderGoodsTest> {
    @Select("select * from orderDto,orderGoodsDto where  orderDto.order_id =orderGoodsDto.order_id")
    List<OrderGoodsTest> All();
    @Select("select * from orderDto,orderGoodsDto where  orderDto.order_id =orderGoodsDto.order_id and orderDto.order_id like '%${orderId}%'")
    List<OrderGoodsTest> selectByID(OrderGoodsTest orderGoodsTest);
}
